<div bsModal #createOrEditModal="bs-modal" (onShown)="onShown()" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="createOrEditModal" aria-hidden="true" [config]="{backdrop: 'static', keyboard: !saving}">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <form *ngIf="active" #bopForm="ngForm" novalidate (ngSubmit)="save()" autocomplete="off">
                <div class="modal-header">
                    <h4 class="modal-title">
                        <span>{{isInsert?'新增':'修改'}}子级</span>
                    </h4>
                    <button type="button" class="close" (click)="close()" [attr.aria-label]="l('Close')" [disabled]="saving">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <label for="nodeDrawingNo">图号*</label>
                        <input id="nodeDrawingNo" #nodeDrawingNoInput="ngModel" type="text" name="nodeDrawingNo" class="form-control" [(ngModel)]="form.nodeDrawingNo" required maxlength="256"  />
                        <validation-messages [formCtrl]="nodeDrawingNoInput"></validation-messages>
                    </div>
                    <div class="form-group">
                        <label for="nodeName">名称*</label>
                        <input id="nodeName" #nodeNameInput="ngModel" type="text" name="nodeName" class="form-control" [(ngModel)]="form.nodeName" required maxlength="256"  />
                        <validation-messages [formCtrl]="nodeNameInput"></validation-messages>
                    </div>
                    <!-- <div class="form-group">
                        <label for="modelName">文件编号*</label>
                        <input id="modelName" #modelNameInput="ngModel" type="text" name="modelName" class="form-control" [(ngModel)]="form.modelName" required maxlength="256"  />
                        <validation-messages [formCtrl]="modelNameInput"></validation-messages>
                    </div> -->
                  
                </div>
                <div class="modal-footer">
                    <button [disabled]="saving" type="button" class="btn btn-default" (click)="close()">取消</button>
                    <button type="submit" class="btn btn-primary" [disabled]="!bopForm.form.valid" [buttonBusy]="saving" [busyText]="l('SavingWithThreeDot')"><i class="fa fa-save"></i> <span>保存</span></button>
                </div>
            </form>
        </div>
    </div>
</div>
